<?php
/**
 * Created by PhpStorm.
 * User: Hasee
 * Date: 2020/4/16
 * Time: 10:49
 */
require_once __DIR__.'/common/common.php';
mysqli_select_db($mysql,'baidu');
for ($i=0;$i<100;$i++){
    $time = mktime(//mktime(小时数，分钟数，秒数,月份数,天数,年份数)
        rand(1,24),
        rand(0,60),
        rand(0,60),
        rand(1,12),
        rand(1,31),
        rand(2015,2020)
    );
    $sql="INSERT INTO article(time,content)VALUES ($time,'你好')";
    mysqli_query($mysql,$sql);
}